<include file="Inc/html_header" />
<style>
#icon i{cursor:pointer;width: 30px;}
#icon i:hover{cursor:pointer;}
#icon dd{line-height:30px;}
#icon{display:none;}
</style>
<div class="margin10px">
	<form name="addpage" method="post" action="<?php echo U('node/node_edit');?>" onsubmit="return checkNode();">
    	<input type="hidden" name="node_id" value="<?php echo $detail['node_id'];?>" />
		<table class="table table-bordered table-hover">
            <thead>
                <tr>
                    <th colspan="2">修改节点</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td width="100" class="tdf">父节点</td>
                    <td><strong><?php echo $node_parents;?></strong></td>
                </tr>
                <tr>
                    <td class="tdf">节点名称：</td>
                    <td><input class="form-control form-focus input_text" type="text" id="node_name" name="node_name" value="<?php echo $detail['node_name'];?>" /><span></span> 例：员工管理</td>
                </tr>
                <tr>
                    <td class="tdf">节点地址：</td>
                    <td><input class="form-control form-focus input_text" type="text" id="m_c_a" name="m_c_a" size="40" value="<?php echo $detail['m_c_a'];?>" /><span></span> 例：以“”分割（控制器/动作），例子： node/node_add</td>
                </tr>
                <tr>
                    <td class="tdf">节点等级：</td>
                    <td class="mySelect"><?php echo $menuLevelSelect; ?><span></span></td>
                </tr>
                <tr>
                    <td class="tdf">排序：</td>
                    <td><input autocomplete="off" class="form-control form-focus input_text" type="text" name="px" size="3" value="<?php echo $detail['px'];?>" /></td>
                </tr>
                <tr>
                    <td>当前图标</td>
                    <td>
                        <i id="cur_icon" class="{$info.css}" style="font-size: 24px;"></i>
                        <input class="form-control form-focus input_text" id="hidden_icon" type="text" name="css" value="{$info.css}" placeholder="选择图标或直接输入"/>
                        <button id="open_icon" type="button" class="sys-btn" style="margin-top:10px;"><i class="icon-th"></i>选择图标</button>
                        <dl id="icon">
                            <?php foreach($css_styles as $v){ ?>
                                <a><i class="<?php echo $v;?>"></i></a>&nbsp;&nbsp;
                            <?php } ?>
                        </dl>
                    </td>
                </tr>
                <tr>
                    <td class="tdf">&nbsp;</td>
                    <td>
                        <input type="submit" value="修改" class="btn btn-primary" />
                        <input type="button" value="返回" class="btn" onclick="backStep();" />
                    </td>
                </tr>
            </tbody>
		</table>
	</form>
</div>
<script type="text/javascript" src="/js/admin/node_edit.js"></script>
<include file="Inc/html_footer" />